package com.caigou.security.entity;


import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

/**
 * Created by echisan on 2018/6/23
 */

@Data
public class SecurityUser {


    private Long id;

    private String userId;

    private String username;

    private String password;

    private String salt;

    private String role;

    private String frontToken;

    private Collection<? extends GrantedAuthority> authorities;

    @Override
    public String toString() {
        return "SecurityUser{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", role='" + role + '\'' +
                '}';
    }
}
